/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author user
 */
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
class write_txt {
    
  void wr_txt(String path, //переменная пути
              String text  //переменная для текста в файле
             ) throws IOException 
  {
      
    FileWriter fw = new FileWriter(path);
    BufferedWriter bw = new BufferedWriter(fw);
    // Write strings to the file
    //for (int i = 0; i < 12; i++) {
      bw.write(text);
    //}
    // Close buffered writer
    bw.close();  
      
  }
    
  public static void main(String args[]) throws Exception {

  }
}